/*
 * @Author: “Jackson” “1145239633@qq.com”
 * @Date: 2025-08-06 16:12:57
 * @LastEditors: “Jackson” “1145239633@qq.com”
 * @LastEditTime: 2025-08-08 15:43:55
 * @FilePath: \shaangu-web\src\utils\echartsPie3d.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
let option;
export const getPie = (data) => {
  option = {
      legend: {
      right: 10,
      // top: 10,
    },
    grid: {
      top: "10%",
      right: "10%",
      bottom: "10%",
      left: "10%",
    },
    series: [
      {
        // name: "Nightingale Chart",
        type: "pie",
        radius: [50, 100],
        center: ["50%", "55%"],
        roseType: "area",
        itemStyle: {
          borderRadius: 8,
        },
        data: data,
      },
    ],
  };
  return option;
};

export const getPie1 = (data) => {
  option = {
    tooltip: {
      trigger: "item",
    },
     legend: {
      right: 10,
      // top: 10,
    },
    grid: {
      top: "10%",
      right: "10%",
      bottom: "10%",
      left: "10%",
    },
    series: [
      {
        type: "pie",
        radius: "50%",
        data: data,
        emphasis: {
          itemStyle: {
            shadowBlur: 10,
            shadowOffsetX: 0,
            shadowColor: "rgba(0, 0, 0, 0.5)",
          },
        },
      },
    ],
  };
  return option;
};
